<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel=stylesheet href=css/list.css  type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Life Search V1.0Alpha</title>
<script type='text/javascript' src="${pageContext.request.contextPath}/dwr/engine.js"></script>
<script type='text/javascript' src="${pageContext.request.contextPath}/dwr/util.js"></script>
<script type='text/javascript' src="${pageContext.request.contextPath}/dwr/interface/searchService.js"></script>
<script type='text/javascript' src="${pageContext.request.contextPath}/dwr/interface/autoComplete.js"></script>
<script type='text/javascript' src="${pageContext.request.contextPath}/dwr/interface/showPic.js"></script>
<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<script type="text/javascript" src="js/dosearch.js"></script>
<script type="text/javascript" src="js/showmaps.js"></script>
<script type="text/javascript" src="js/inputtext.js"></script>
<script type="text/javascript">
document.charset="UTF-8";
var startindex = 0;
var endindex = 0;
var Page=0;
var count=0;
var Result = new Array();
var LocString=String(document.URL);
function GetQueryString(str){
	var rs=new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString),tmp;
	if(tmp=rs)return tmp[2];
	return "没有这个参数";
}
function dosearch(){
	var name=unescape(GetQueryString("name"));
	request = {startindex:1, query:name};
	DWRUtil.getValues(request);
	searchService.getSearchResults(request,fillpage);
}
</script>
</head>
<body onload="dosearch()">
	<div id="header">
		<form id="tsf" name="gs">
			<table id="sft" class="ts" style="clear: both;"s>
				<tbody>
					<tr valign="bottom">
						<td style="padding-right: 8px;">
							<a>
								<div id="logo">
									<img height="89" width="168" alt="" src="images/food2.png" />
								</div>
							</a>
						</td>
						<td style="padding: 1px 0pt 7px; width: 100%;" id="sff">
							<table  class="ts" style="margin-top: 25px;">
								<tbody>
									<tr>
										<td valign="bottom" style="font-size: 12px; white-space: nowrap;">
											<input id="pname" type="text" ishint="0" onkeyup="showUser(this)" maxlength="2048" size="41" onkeyup="showUser(this)" autocomplete = "off"/>
										</td>
										<td valign="bottom">
											<input type="submit" style="padding: 0pt 8px; width: 90px; font-size: 12px; margin-left: 5px;" value="搜索餐饮" onclick="searchClick()"/>
										</td>								
									</tr>
								</tbody>
							</table>
						</td>					
					</tr>
				</tbody>
			</table>
			<table class="gac_m" cellspacing="0" cellpadding="0" style="visibility: hidden; left: 166px; top: 76px; width: 551px;"  id="showUser">
					<tbody>
						<td style="padding-right: 8px;" height="0" width="172" >
						</td>
						<td>
							<div id="resulttable">
							</div>
						</td>
					</tbody>
			</table>			
		</form>
	</div>
	<div id="map" class="csp" style="width: 210px;">
		<table class="cstf" cellspacing="0" cellpadding="3" style="border: 0pt none ; width: 210px; line-height: 120%;">
			<tbody>
			</tbody>
		</table>
	</div>
	<div id="main">
		<div id="wrap">
			<table class="hometab" cellspacing="0" cellpadding="0" border="0" width="100%">
				<tbody>
					<tr>
						<td width="320" valign="top" rowspan="2">
							<div class="wleft">
								<div class="lcon">
									<div id="spm" style="width: 302px; height: 310px; position: relative; background-color: rgb(229, 227, 223);">
										<div id="maps" style="position:relative; width:300px; height:400px; border:black solid 1px;">
											<div align="center" style="margin:12px;">
												<a href="http://api.51ditu.com/docs/mapsapi/help.html" target="_blank" style="color:#D01E14;font-weight:bolder;font-size:12px;">
													看不到地图请点这里
												</a>
											</div>
										</div>
									</div>
								</div>
							</div>
						</td>
						<td valign="top">
							<div class="topbar">
								<div style="float: right;">
									
								</div>	
							</div>
							<div id="list" class="list">
								<ul id="spras">
								</ul>
							</div>				
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</body>
<center id="pp">
		<table cellspacing="0" cellpadding="0">
			<tbody>
				<tr id="page">
					
				</tr>
			</tbody>
		</table>
</center>
</html>